]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Improve overlay mode's window scaling
authorOwen Taylor <otaylor@src.gnome.org>
Sun, 23 Nov 2008 04:23:34 +0000 (04:23 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sun, 23 Nov 2008 04:23:34 +0000 (04:23 +0000)
Add a layout for 5 windows and slightly increase the scale factor
for 3 and 4 windows.

Patch from Natan Yellin
http://bugzilla.gnome.org/show_bug.cgi?id=561947

svn path=/trunk/; revision=81

js/ui/overlay.js

index 5c8a60fea08cb17af0778293630a1518105b84c7..e15ed991f159bb80654b0772b79033771c2a7086 100644 (file)
@@ -41,8 +41,9 @@ const WINDOW_OPACITY = 0.9 * 255;
 const POSITIONS = {
     1: [[0.5, 0.5, 0.8]],
     2: [[0.25, 0.5, 0.4], [0.75, 0.5, 0.4]],
-    3: [[0.2, 0.33, 0.3],  [0.5, 0.67, 0.3],  [0.8, 0.33, 0.3]],
-    4: [[0.25, 0.25, 0.3],   [0.75, 0.25, 0.3], [0.75, 0.75, 0.3], [0.25, 0.75, 0.3]]
+    3: [[0.25, 0.25, 0.33],  [0.75, 0.25, 0.33],  [0.5, 0.75, 0.33]],
+    4: [[0.25, 0.25, 0.33],   [0.75, 0.25, 0.33], [0.75, 0.75, 0.33], [0.25, 0.75, 0.33]],
+    5: [[0.165, 0.25, 0.28], [0.495, 0.25, 0.28], [0.825, 0.25, 0.28], [0.25, 0.75, 0.4], [0.75, 0.75, 0.4]]
 };
 
 function Sideshow(width) {